package com.jml.service.order.impl;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import lombok.extern.slf4j.Slf4j;


@RestController
@Slf4j
public class OrderTempService {


    /**
     * orderToUserMemer
     *
     * @return
     */
    @RequestMapping("/orderToMemer")
    public String orderToUserMemer() {
        try {
            // 模拟调用其他接口
            Thread.sleep(500);
        } catch (Exception e) {

        }
        log.info(">>>" + Thread.currentThread().getName() + "<<<");
        return "订单调用会员成功";
    }

    /**
     * smsOrder
     *
     * @return
     */
    @RequestMapping("/smsOrder")
    public String smsOrder() {
        log.info(">>>" + Thread.currentThread().getName() + "<<<");
        return "订单发送短信消息";
    }
}
